package pchi.pchicamera.data;

import android.app.Activity;
import android.util.DisplayMetrics;

public class SizeDevices {
	public static int getWidth(Activity activity) {
		int resultWidth = 0;
		DisplayMetrics displaymetrics = new DisplayMetrics();
		activity.getWindowManager().getDefaultDisplay()
				.getMetrics(displaymetrics);
		resultWidth = displaymetrics.widthPixels;
		return resultWidth;
	}

	public static int getHeight(Activity activity) {
		int resultHeight = 0;
		DisplayMetrics displaymetrics = new DisplayMetrics();
		activity.getWindowManager().getDefaultDisplay()
				.getMetrics(displaymetrics);
		resultHeight = displaymetrics.widthPixels;
		return resultHeight;
	}
}
